<!-- Câu hỏi -->
<div builder="1" class="widget-box widget-editing col-single-choice">

    <!-- Câu hỏi hiện thị -->
    <div class="widget-question" hidden="hidden">
        <div class="widget-header widget-tooltip">
            <h5>
                <span class="col-number">1</span>.
                <span class="col-title"></span>
            </h5>

            <!-- tooltip -->
            <div class="col-tooltip">
                <span>Đau chân</span>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="widget-body">
            <div class="widget-main">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                </ul>
            </div>
        </div>
    </div>

    <!-- Chỉnh sửa câu hỏi-->
    <div class="widget-edit">
        <div class="widget-edit-method">Q<span class="col-number">1</span>: Single Choice</div>

        <div class="widget-edit-question form-group">
            <textarea class="textarea col-title" placeholder="Question name"></textarea>

            <!-- Tag-->
            <div class="tag">
                <span class="question-tag"><i class="fa fa-tag"></i> Tag <i class="fa fa-caret-down"></i></span>

                <div class="survey-tag">
                    <div class="tagged">
                        <!--<div class="tagged-item">
                            <span>Đau chân</span>
                            <span><i class="fa fa-times"></i></span>
                        </div>

                        <div class="tagged-item">
                            <span>Đau chân</span>
                            <span><i class="fa fa-times"></i></span>
                        </div>

                        <div class="tagged-item">
                            <span>Đau chân</span>
                            <span><i class="fa fa-times"></i></span>
                        </div>-->
                    </div>
                    <div class="tag-input">
                        <input type="text" placeholder="Tag">
                    </div>
                    <div class="search-result">
                        <ul>
                            <?php
                                foreach($tag as $value){
                                    echo '<li>'.$value['attr_name'].'</li>';
                                }
                            ?>
                        </ul>
                    </div>
                </div>
            </div>

        </div>

        <div class="widget-edit-answer">
            <div class="widget-edit-answer-title">Answers</div>
            <ul class="widget-edit-answer-body form-control">

                <li class="form-group">
                    <div class="col-answer">
                        <div class="col-left">
                            <input class="input" type="text" placeholder="Answer">
                            <div class="tag">
                                <span class="question-tag"><i class="fa fa-tag"></i> Tag <i class="fa fa-caret-down"></i></span>
                                <div class="survey-tag">
                                    <div class="tagged">
                                    </div>
                                    <div class="tag-input">
                                        <input type="text" placeholder="Tag">
                                    </div>
                                    <div class="search-result">
                                        <ul>
                                            <?php
                                                foreach($tag as $value){
                                                    echo '<li>'.$value['attr_name'].'</li>';
                                                }
                                            ?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-right">
                            <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                            <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                        </div>
                    </div>
                </li>

                <li class="form-group">
                    <div class="col-answer">
                        <div class="col-left">
                            <input class="input" type="text" placeholder="Answer">
                            <div class="tag">
                                <span class="question-tag"><i class="fa fa-tag"></i> Tag <i class="fa fa-caret-down"></i></span>
                                <div class="survey-tag">
                                    <div class="tagged">
                                    </div>
                                    <div class="tag-input">
                                        <input type="text" placeholder="Tag">
                                    </div>
                                    <div class="search-result">
                                        <ul>
                                            <?php
                                            foreach($tag as $value){
                                                echo '<li>'.$value['attr_name'].'</li>';
                                            }
                                            ?>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-right">
                            <span class="widget-edit-add-question"><i class="fa fa-plus-circle"></i></span>
                            <span class="widget-edit-remove-question"><i class="fa fa-times-circle"></i></span>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
        <!-- Lưu hoặc hủy lưu chỉnh sửa -->
        <div class="widget-edit-option">
            <input class="btn save-question" type="button" value="Ok">
            <input class="btn cancel-question" type="button" value="Cancel">
        </div>
    </div>

    <!-- Xóa hoặc edit câu hỏi.-->
    <div class="widget-option">
        <span onclick="editQuestion(this);" class="edit-survey-question"><i class="fa fa-pencil-square-o"></i></span>
        <span onclick="removeQuestion(this);" class="remove-survey-question"><i class="fa fa-times"></i></span>
    </div>

</div>
